package com.karry.yl.dao.healthdata;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.karry.commons.base.SuperMapper;
import com.karry.yl.domain.healthdata.HealthDataItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface HealthDataItemMapper extends SuperMapper<HealthDataItem> {
    @Select("select hdi.id,hdi.name,hdi.standardValues,hdi.typeId,hdi.deleted,hdi.createdTime,hdt.name as 'typeName' from health_data_item hdi left join  health_data_type hdt on hdt.id = hdi.typeId where hdi.deleted = 0 ")
    List<HealthDataItem> selectItemList(Pagination page, @Param("ew") Wrapper<HealthDataItem> var2);


    @Select("select hdi.id,hdi.name,hdi.standardValues,hdi.typeId,hdi.deleted,hdi.createdTime,hdt.name as 'typeName' from health_data_item hdi left join  health_data_type hdt on hdt.id = hdi.typeId where hdi.deleted = 0 ")
    List<HealthDataItem> selectItemList();
}
